package com.winner.monitor;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * 第二个具体的监听器
 */
@Component
public class MyListener implements ApplicationListener<MyEvent> {
	@Override
	public void onApplicationEvent(MyEvent event) {
		System.out.println("监听到第二个onApplicationEvent");
		System.out.println("监听到事件: "+event.getId()+"\t"+event.getMessage());
	}
}
